package com.xlh.pojo.cs;

import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
public class CoursePhase implements Serializable {
    private Long id;

    /**
     * 课程类型:1-系统课程,2-非系统课程
     *
     * @mbg.generated
     */
    private Integer type;

    /**
     * 关联的课程id
     *
     * @mbg.generated
     */
    private Long courseId;

    private Long userId;

    /**
     * 学习阶段id
     *
     * @mbg.generated
     */
    private Long phaseId;

    /**
     * 排序号
     *
     * @mbg.generated
     */
    private Integer orderNum;

    private Boolean deleted;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public CoursePhase(Integer type, Long courseId, Long phaseId, Integer orderNum) {
        this.type = type;
        this.courseId = courseId;
        this.phaseId = phaseId;
        this.orderNum = orderNum;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPhaseId() {
        return phaseId;
    }

    public void setPhaseId(Long phaseId) {
        this.phaseId = phaseId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", courseId=").append(courseId);
        sb.append(", userId=").append(userId);
        sb.append(", phaseId=").append(phaseId);
        sb.append(", orderNum=").append(orderNum);
        sb.append(", deleted=").append(deleted);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}